use openid_connect gem's jwks caching feature#576
use openid_connect gem's jwks caching feature#576nov wants to merge 1 commit intoManageIQ:masterfrom
Conversation
|
@rhysm @benlangfeld you know more than me about OIDC, could you review? @nov Does this deserve any additions to README? Or is it "if you've set up a JWK cache it'll automagically do the obvious Right Thing, and if not you don't care about this?" |
|
If OIDC login flow is executed very often, it deserve to be added to README too. |
|
OK, I don't know how to review this myself, but I shouldn't have blocked this either. Superficially, makes sense 👍 @nov please add at least a CHANGELOG.md entry (as I'm not sure how to explain this change well), and I'll merge. |
|
@nov friendly ping — the only thing blocking merge is I don't know how to explain this change in CHANGELOG.md, please add an entry there 🙏 FYI, #606 is looking to auto-renew credentials, and intends to call [EDIT: all this time I haven't realized you're are the author of openid_connect 😳 👏 Still, I don't know enough about this area, and I need someone to explain the implications at least to the users...] |
same with omniauth/omniauth_openid_connect#124
when passing
OpenIDConnect::Discovery::Provider::Config::Responseinstance toOpenIDConnect::ResponseObject::IdToken.decode, it fetches JWK Set usingJSON::JWK::Set::Fetcher.JSON::JWK::Set::Fetchertries to cache JWKS by givenkidwhenJSON::JWK::Set::Fetcher.cacheis setup like below.